//引入四个常用通用样式
import "../../assets/css/index.less";
//引入自身的css样式表
import "./ad.less";
//引入通用js
//引入方式一
// import { $ } from "../../util/dom.js";
//引入方式二
let dom = require("../../util/dom.js");
//引入动画
require("animate.css");
//时间跳转

let fn = function () {
	let num = 5;
	setInterval(() => {
		num--;
		if (num <= 1) {
			location.href = "./login.html";
		}
		dom.$("#time").innerHTML = `${num}s`;
	}, 1000);
};
fn();
//点击进行跳转到登录页
dom.$("#jump").addEventListener("click", function () {
	location.href = "./login.html";
});
